import { HttpUrlVariable } from "@/constants";
import type { PayParams, PayResult } from "@/types/payment";
import RequestHttp from "@/utils/request";

/***
 * 支付接口-只支持支付宝
 * **/
export const payAPI = (data: PayParams) =>
  RequestHttp.post<PayResult, PayParams>(HttpUrlVariable.PAY_URL, data)
